package ecustom.clients.k3client.entities;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonAutoDetect;

import ecustom.common.util.CustomUtil;

/**
* @author 作者:Gcc
* @createDate 创建时间：Jul 31, 2023 12:45:46 PM
* 
* 采购申请
* 
*/
@JsonAutoDetect(
		fieldVisibility = JsonAutoDetect.Visibility.ANY,
		getterVisibility = JsonAutoDetect.Visibility.NONE)
public class ERPPurchasingReq {
	
	private Model Model;

	public Model getModel() {
		if(CustomUtil.isBlank(Model)) return Model = new Model();
		return Model;
	}

	public void setModel(Model model) {
		Model = model;
	}

	@JsonAutoDetect(
			fieldVisibility = JsonAutoDetect.Visibility.ANY,
			getterVisibility = JsonAutoDetect.Visibility.NONE)
	public static class Model {
		private Integer FID;	// 实体主键，有实体主键为修改操作，没有则新建
		private Map<String, Object> FApplicationDeptId;	// 申请部门
		private String F_PAEZ_Text;	// 联系方式
		private Map<String, Object> F_PAEZ_Assistant;	// 物料类型
		private List<FEntity> FEntity;
		private String FOABillNo;	// OA流程编号
		
		public Integer getFID() {
			return FID;
		}
		public void setFID(Integer fID) {
			FID = fID;
		}
		public Map<String, Object> getFApplicationDeptId() {
			if(CustomUtil.isBlank(FApplicationDeptId))  return FApplicationDeptId =  new HashMap<String, Object>();
			return FApplicationDeptId;
		}
		public void setFApplicationDeptId(Map<String, Object> fApplicationDeptId) {
			FApplicationDeptId = fApplicationDeptId;
		}
		public String getF_PAEZ_Text() {
			return F_PAEZ_Text;
		}
		public void setF_PAEZ_Text(String f_PAEZ_Text) {
			F_PAEZ_Text = f_PAEZ_Text;
		}
		public Map<String, Object> getF_PAEZ_Assistant() {
			if(CustomUtil.isBlank(F_PAEZ_Assistant))  return F_PAEZ_Assistant = new HashMap<String, Object>();
			return F_PAEZ_Assistant;
		}
		public void setF_PAEZ_Assistant(Map<String, Object> f_PAEZ_Assistant) {
			F_PAEZ_Assistant = f_PAEZ_Assistant;
		}
		public List<FEntity> getFEntity() {
			return FEntity;
		}
		public void setFEntity(List<FEntity> fEntity) {
			FEntity = fEntity;
		}
		public String getFOABillNo() {
			return FOABillNo;
		}
		public void setFOABillNo(String fOABillNo) {
			FOABillNo = fOABillNo;
		}
	}
	
	@JsonAutoDetect(
			fieldVisibility = JsonAutoDetect.Visibility.ANY,
			getterVisibility = JsonAutoDetect.Visibility.NONE)
	public static class FEntity {
		private Map<String, Object> FMaterialId;	// 物料
		private Double FReqQty;	// 申请数量
		private String F_PAEZ_Text2;	// 单日损耗
		private String F_PAEZ_Text3;	// 每周损耗
		private String FEntryNote;	// 备注
		private Map<String, Object> FPECLProjectID;	// 项目编码
		private String 	FFMOthers;	// 其他
		public Map<String, Object> getFMaterialId() {
			if(CustomUtil.isBlank(FMaterialId))  return FMaterialId = new HashMap<String, Object>();
			return FMaterialId;
		}
		public void setFMaterialId(Map<String, Object> fMaterialId) {
			FMaterialId = fMaterialId;
		}
		public Double getFReqQty() {
			return FReqQty;
		}
		public void setFReqQty(Double fReqQty) {
			FReqQty = fReqQty;
		}
		public String getF_PAEZ_Text2() {
			return F_PAEZ_Text2;
		}
		public void setF_PAEZ_Text2(String f_PAEZ_Text2) {
			F_PAEZ_Text2 = f_PAEZ_Text2;
		}
		public String getF_PAEZ_Text3() {
			return F_PAEZ_Text3;
		}
		public void setF_PAEZ_Text3(String f_PAEZ_Text3) {
			F_PAEZ_Text3 = f_PAEZ_Text3;
		}
		public String getFEntryNote() {
			return FEntryNote;
		}
		public void setFEntryNote(String fEntryNote) {
			FEntryNote = fEntryNote;
		}
		public Map<String, Object> getFPECLProjectID() {
			if(CustomUtil.isBlank(FPECLProjectID))  return FPECLProjectID = new HashMap<String, Object>();
			return FPECLProjectID;
		}
		public void setFPECLProjectID(Map<String, Object> fPECLProjectID) {
			FPECLProjectID = fPECLProjectID;
		}
		public String getFFMOthers() {
			return FFMOthers;
		}
		public void setFFMOthers(String fFMOthers) {
			FFMOthers = fFMOthers;
		}
		
		
		
	}

}
